package com.hancher.gamelife2.birthday;

import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.Index;
import androidx.room.PrimaryKey;

import com.hancher.common.javautil.UuidUtil;

import lombok.Data;

/**
 * 描述 : 数据库实体类 <br/>
 * 时间 : 2023/12/2 11:48 <br/>
 * 作者 : Hancher ytu_shaoweijie@163.com
 */
@Entity(tableName = "birthday", indices = {@Index(value = "uuid", unique = true)})
@Data
public class BirthdayPO {

    @PrimaryKey
    Long id;
    String uuid = UuidUtil.getUuidNoLine();
    Long createTime = System.currentTimeMillis();
    Long updateTime = System.currentTimeMillis();
    Byte deleteflag = 0;

    String name;
    Long solarBirthday;
    Integer solarY = 1;
    Integer solarM = 1;
    Integer solarD = 1;
    Integer lunarY = 1;
    Integer lunarM = 1;
    Integer lunarD = 1;
    Boolean female = true;
    Boolean isSolar = true;
    Boolean isLunar = true;
    @Ignore
    Integer countdownDay;
    @Ignore
    Integer countdownAge;
    String content;

    /**
     * 百度网盘相对地址
     */
    String image;
    /**
     * 百度网盘唯一id
     */
    String fsids;
    /**
     * 百度网盘临时url
     */
    @Ignore
    String imgUrl;
    /**
     * 缓存文件路径
     */
    @Ignore
    String imgCachePath;

    /**
     * 1条拆为2条，当前是收拾阴历
     */
    Boolean isLunarType = true;
}
